package lec01.pm;

public class StringDemo1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int m=Integer.parseInt("FF",16);
		
		int n=345;
		//String s=n+"";//radix=10
		String s=new StringBuffer(Integer.toString(n,10)).reverse().toString();
		System.out.println(s);
		char cs[]=s.toCharArray();
		int x=cs[0]-'0';
		int y=cs[1]-'0';
		int z=cs[2]-'0';
		System.out.println(String.format("x=%d\ny=%d\nz=%d", x,y,z));

	}

}
